from typing import Annotated

from pydantic import BaseModel, Field


class UserVo(BaseModel):
    username: str = Field(description="用户名", pattern="^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$")
    pwd: str = Field(description="密码", pattern="^[0-9a-zA-Z]{3,20}$")
